package Queue;

import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;

public class Test {
    public static void main(String[] args) {
        Queue<Integer> myQueue = new LinkedList<>();//单端队列
        myQueue.offer(1);
        myQueue.offer(4);
        myQueue.offer(5);
        myQueue.offer(6);
        myQueue.offer(7);

        System.out.println(myQueue.size());
        System.out.println(myQueue.isEmpty());
        Deque<Integer> myQueue2 = new LinkedList<>();//双端队列
    }
}
